package com.imonsoft.common.httpModel;

import java.util.ArrayList;
import java.util.List;

/**
 * easyui的datagrid模型
 * 
 * @author LiQianHui
 * @date 2012-10-22
 * @version 2012
 */
public class DataGrid<T> implements java.io.Serializable {

	private static final long serialVersionUID = -6864149233574423678L;
	private int total;// 总记录数
	private List<T> rows = new ArrayList<T>();// 每行记录
	private List<T> footer = new ArrayList<T>();

	public DataGrid() {

	}

	public DataGrid(int total, List<T> rows) {
		this.total = total;
		this.rows = rows;
	}

	public final int getTotal() {
		return total;
	}

	public final void setTotal(int total) {
		this.total = total;
	}

	public final List<T> getRows() {
		return rows;
	}

	public final void setRows(List<T> rows) {
		this.rows = rows;
	}

	public final List<T> getFooter() {
		return footer;
	}

	public final void setFooter(List<T> footer) {
		this.footer = footer;
	}

	

}
